package com.qwert.shortlink.admin.controller.remote;

import com.qwert.shortlink.admin.common.convention.result.Result;
import com.qwert.shortlink.admin.remote.dto.RecycleBinRemoteService;
import com.qwert.shortlink.admin.remote.dto.req.reyclebin.RecycleBinSaveReqDTO;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author qwert
 * @version 1.0.0
 * @create 2024/7/6 20:55
 **/
@RestController
@RequestMapping("/api/shortlink/admin")
public class RecycleBinController {
    RecycleBinRemoteService recycleBinRemoteService = new RecycleBinRemoteService(){

    };

    @PostMapping("/v1/recycle-bin/save")
    public Result<Integer> saveRecycleBin(@RequestBody RecycleBinSaveReqDTO recycleBinSaveReqDTO){
        return recycleBinRemoteService.saveRecycleBin(recycleBinSaveReqDTO);
    }
}
